/*
 * @Description: 值传递和地址传递
 * @Author: rendc
 * @Date: 2022-09-28 09:52:46
 * @LastEditors: rendc
 * @LastEditTime: 2022-09-28 09:55:46
 */
let a = 10;
let b;
b = a;
console.log('🤡 CC - a', a);
console.log('🤡 CC - b', b);
a = 20;
console.log('🤡 CC - a', a); // 20
console.log('🤡 CC - b', b); // 10

let obj1 = { name: "张三" };
let obj2
obj2 = obj1;
console.log('🤡 CC - obj1', obj1);
console.log('🤡 CC - obj2', obj2);
obj1.name = "李四";
console.log('🤡 CC - obj1', obj1);
console.log('🤡 CC - obj2', obj2)
